package homework;

public class Manager extends Employee{
    private double bonus;
    //创建manager的时候，奖金是多少是不确定的
    //可以后面通过setBonus
    public Manager(String name, double daySal, int workDays, double grade) {
        super(name, daySal, workDays, grade);
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public void printSal() {
        System.out.println("经理 " + getName() + " 的工资是" + (bonus + getDaySal() * getWorkDays() * getGrade()));
    }
}
